﻿using Microsoft.Extensions.DependencyInjection;

namespace Net8.Project.Extension
{
    public static class AutoMapperCollectionExtensions
    {
        public static IServiceCollection AddAutoMapperSetup(this IServiceCollection services)
        {
            services.AddAutoMapper(typeof(AutoMapperConfig));
            AutoMapperConfig.RegisterMappings();
            return services;
        }
    }
}
